package sddz.foodmanage.model;

import java.io.Serializable;
import java.util.List;

/**
 * @Date:2019/7/10
 * @Author:lbb
 * 待核实，待评论，待配送
 */

public class WaitListBean implements Serializable {
    /**
     * message : 成功
     * status_code : 200
     * data : [{"id":38,"number":"test20190708","total_price":0,"supplier_id":75,"detachment_id":56,"type":3,"grade":1,"created_at":"2019-07-08 16:03:07","updated_at":"2019-07-09 11:15:47","goods":[{"id":263,"name":"土豆","classification_id":3,"imgs":[{"url":"/storage/users/1/imgs/156/181561801673.jpg"}],"unit":"kg","price":5.5,"amount":3,"amount_data":3,"user_id":56,"order_id":38,"goods_id":156,"created_at":"2019-07-08 16:03:07","updated_at":"2019-07-08 16:03:07"},{"id":264,"name":"苹果","classification_id":3,"imgs":[{"url":"/storage/users/1/imgs/160/211562160113.png"}],"unit":"kg","price":10,"amount":3,"amount_data":3,"user_id":56,"order_id":38,"goods_id":160,"created_at":"2019-07-08 16:03:07","updated_at":"2019-07-08 16:03:07"},{"id":265,"name":"黄瓜","classification_id":3,"imgs":[{"url":"/storage/users/75/imgs/168/481562400712.jpg"}],"unit":"kg","price":20,"amount":3,"amount_data":3,"user_id":56,"order_id":38,"goods_id":168,"created_at":"2019-07-08 16:03:07","updated_at":"2019-07-08 16:03:07"}],"detachment":{"id":56,"name":"test","type":2,"status":1,"avatar":"/storage/default/avatar.jpg","supplier_id":75,"service_ended_at":"2019-07-08 00:00:00","created_at":"2019-06-25 16:59:04","updated_at":"2019-07-08 14:38:31","deleted_at":null}}]
     */

    private String message;
    private int status_code;
    private List<DataBean> data;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getStatus_code() {
        return status_code;
    }

    public void setStatus_code(int status_code) {
        this.status_code = status_code;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{
        /**
         * id : 38
         * number : test20190708
         * total_price : 0
         * supplier_id : 75
         * detachment_id : 56
         * type : 3
         * grade : 1
         * created_at : 2019-07-08 16:03:07
         * updated_at : 2019-07-09 11:15:47
         * goods : [{"id":263,"name":"土豆","classification_id":3,"imgs":[{"url":"/storage/users/1/imgs/156/181561801673.jpg"}],"unit":"kg","price":5.5,"amount":3,"amount_data":3,"user_id":56,"order_id":38,"goods_id":156,"created_at":"2019-07-08 16:03:07","updated_at":"2019-07-08 16:03:07"},{"id":264,"name":"苹果","classification_id":3,"imgs":[{"url":"/storage/users/1/imgs/160/211562160113.png"}],"unit":"kg","price":10,"amount":3,"amount_data":3,"user_id":56,"order_id":38,"goods_id":160,"created_at":"2019-07-08 16:03:07","updated_at":"2019-07-08 16:03:07"},{"id":265,"name":"黄瓜","classification_id":3,"imgs":[{"url":"/storage/users/75/imgs/168/481562400712.jpg"}],"unit":"kg","price":20,"amount":3,"amount_data":3,"user_id":56,"order_id":38,"goods_id":168,"created_at":"2019-07-08 16:03:07","updated_at":"2019-07-08 16:03:07"}]
         * detachment : {"id":56,"name":"test","type":2,"status":1,"avatar":"/storage/default/avatar.jpg","supplier_id":75,"service_ended_at":"2019-07-08 00:00:00","created_at":"2019-06-25 16:59:04","updated_at":"2019-07-08 14:38:31","deleted_at":null}
         */

        private int id;
        private String number;
        private Double total_price;

        public Double getTotal_price() {
            return total_price;
        }

        public void setTotal_price(Double total_price) {
            this.total_price = total_price;
        }

        private int supplier_id;
        private int detachment_id;
        private int type;
        private int grade;
        private String created_at;
        private String updated_at;
        private DetachmentBean detachment;
        private List<GoodsBean> goods;

        //======================================clc=================================================
        //送货时间字段
        private String delivery_time;
        public void setDelivery_time(String delivery_time) {
            this.delivery_time = delivery_time;
        }
        public String getDelivery_time() {
            return this.delivery_time;
        }
        //标识购买类型的字段 1，在供货商处购买 2，自采
        private int shopping_type;
        public void setShopping_type(int shopping_type) {
            this.shopping_type = shopping_type;
        }
        public int getShopping_type() {
            return shopping_type;
        }
        //审核时间字段
        private String checked_time;
        public void setChecked_time(String checked_time) {
            this.checked_time = checked_time;
        }
        public String getChecked_time() {
            return checked_time;
        }

        private int dinner_num;//用餐人数

        //==============================================================================================


        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getNumber() {
            return number;
        }

        public void setNumber(String number) {
            this.number = number;
        }


        public int getSupplier_id() {
            return supplier_id;
        }

        public void setSupplier_id(int supplier_id) {
            this.supplier_id = supplier_id;
        }

        public int getDetachment_id() {
            return detachment_id;
        }

        public void setDetachment_id(int detachment_id) {
            this.detachment_id = detachment_id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getGrade() {
            return grade;
        }

        public void setGrade(int grade) {
            this.grade = grade;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public String getUpdated_at() {
            return updated_at;
        }

        public void setUpdated_at(String updated_at) {
            this.updated_at = updated_at;
        }

        public DetachmentBean getDetachment() {
            return detachment;
        }

        public void setDetachment(DetachmentBean detachment) {
            this.detachment = detachment;
        }

        public List<GoodsBean> getGoods() {
            return goods;
        }

        public void setGoods(List<GoodsBean> goods) {
            this.goods = goods;
        }

        public int getDinner_num() {
            return dinner_num;
        }

        public void setDinner_num(int dinner_num) {
            this.dinner_num = dinner_num;
        }

        public static class DetachmentBean implements Serializable{
            /**
             * id : 56
             * name : test
             * type : 2
             * status : 1
             * avatar : /storage/default/avatar.jpg
             * supplier_id : 75
             * service_ended_at : 2019-07-08 00:00:00
             * created_at : 2019-06-25 16:59:04
             * updated_at : 2019-07-08 14:38:31
             * deleted_at : null
             */

            private int id;
            private String name;
            private int type;
            private int status;
            private String avatar;
            private int supplier_id;
            private String service_ended_at;
            private String created_at;
            private String updated_at;
            private Object deleted_at;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public int getSupplier_id() {
                return supplier_id;
            }

            public void setSupplier_id(int supplier_id) {
                this.supplier_id = supplier_id;
            }

            public String getService_ended_at() {
                return service_ended_at;
            }

            public void setService_ended_at(String service_ended_at) {
                this.service_ended_at = service_ended_at;
            }

            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }

            public String getUpdated_at() {
                return updated_at;
            }

            public void setUpdated_at(String updated_at) {
                this.updated_at = updated_at;
            }

            public Object getDeleted_at() {
                return deleted_at;
            }

            public void setDeleted_at(Object deleted_at) {
                this.deleted_at = deleted_at;
            }
        }

        public static class GoodsBean implements Serializable{
            /**
             * id : 263
             * name : 土豆
             * classification_id : 3
             * imgs : [{"url":"/storage/users/1/imgs/156/181561801673.jpg"}]
             * unit : kg
             * price : 5.5
             * amount : 3
             * amount_data : 3
             * user_id : 56
             * order_id : 38
             * goods_id : 156
             * created_at : 2019-07-08 16:03:07
             * updated_at : 2019-07-08 16:03:07
             * total_price
             */

            private int id;
            private String name;
            private int classification_id;
            private String unit;
            private double price;
            private String amount;

            //==========================================================================================
            private String remark;

            public void setRemark(String s){
                this.remark= s;
            }

            public String getRemark(){
                return this.remark;
            }
            //==========================================================================================



            public String getAmount() {
                return amount;
            }

            public void setAmount(String amount) {
                this.amount = amount;
            }

            private double amount_data;
            private double total_price;

            public double getTotal_price() {
                return total_price;
            }

            public void setTotal_price(double total_price) {
                this.total_price = total_price;
            }

            public double getAmount_data() {
                return amount_data;
            }

            public void setAmount_data(double amount_data) {
                this.amount_data = amount_data;
            }

            private int user_id;
            private int order_id;
            private int goods_id;
            private String created_at;
            private String updated_at;
            private List<ImgsBean> imgs;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getClassification_id() {
                return classification_id;
            }

            public void setClassification_id(int classification_id) {
                this.classification_id = classification_id;
            }

            public String getUnit() {
                return unit;
            }

            public void setUnit(String unit) {
                this.unit = unit;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }







            public int getUser_id() {
                return user_id;
            }

            public void setUser_id(int user_id) {
                this.user_id = user_id;
            }

            public int getOrder_id() {
                return order_id;
            }

            public void setOrder_id(int order_id) {
                this.order_id = order_id;
            }

            public int getGoods_id() {
                return goods_id;
            }

            public void setGoods_id(int goods_id) {
                this.goods_id = goods_id;
            }

            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }

            public String getUpdated_at() {
                return updated_at;
            }

            public void setUpdated_at(String updated_at) {
                this.updated_at = updated_at;
            }

            public List<ImgsBean> getImgs() {
                return imgs;
            }

            public void setImgs(List<ImgsBean> imgs) {
                this.imgs = imgs;
            }

            public static class ImgsBean implements Serializable{
                /**
                 * url : /storage/users/1/imgs/156/181561801673.jpg
                 */

                private String url;

                public String getUrl() {
                    return url;
                }

                public void setUrl(String url) {
                    this.url = url;
                }
            }
        }
    }
}
